home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
09-19.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-06
|
921b
|
57 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
DIM Bitmap AS STRING*256
DIM EGAbitmap AS STRING*32
NewMode = FGbestmode(320,200,1)
IF NewMode < 0 OR NewMode = 12 THEN
PRINT "This program requires a 320 x 200 color graphics mode."
STOP
END IF
IF NewMode = 4 THEN
MapWidth = 8
ELSEIF NewMode = 9 THEN
MapWidth = 16
ELSEIF NewMode = 19 THEN
MapWidth = 32
END IF
OldMode = FGgetmode
FGsetmode NewMode
FGsetcolor 7
FGrect 0, 31, 0, 7
FGsetcolor 9
FGtext "text", 4
FGwaitkey
FGmove 0, 7
IF NewMode = 13 THEN
FGsetcolor 7
FGgetimage Bitmap, 4, 8
FGsetcolor 9
FGgetimage EGAbitmap, 4, 8
ELSE
FGgetimage Bitmap, MapWidth, 8
END IF
FGmove 4, 15
IF NewMode = 13 THEN
FGsetcolor 7
FGdrwimage Bitmap, 4, 8
FGsetcolor 9
FGdrwimage EGAbitmap, 4, 8
ELSE
FGdrwimage Bitmap, MapWidth, 8
END IF
FGwaitkey
FGsetmode OldMode
FGreset
END